/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package ia_0.data_model;

import ia_0.World;

/**
 *
 * @author jderenty
 */
public class House extends Element{
    int nbMax;
    int nb;

    public boolean entre(Character c){
        if(nb<nbMax){
            nb++;
            return true;
        } else{
            return false;
        }

    }

    public void sort(Character c){
        nb--;
    }

    public void run() {
        verifie();

    }

    @Override
    public boolean verifie() {
        return true;
    }

}
